.cloud-scrollbar {
  --cloud-text-color-secondary: #909399;
  --cloud-scrollbar-opacity: 0.3;
  --cloud-scrollbar-bg-color: var(--cloud-text-color-secondary);
  --cloud-scrollbar-hover-opacity: 0.5;
  --cloud-scrollbar-hover-bg-color: var(--cloud-text-color-secondary);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.cloud-scrollbar__wrap {
  overflow: auto;
  height: 100%;
}

.cloud-scrollbar__wrap--hidden-default {
  scrollbar-width: none;
}

.cloud-scrollbar__wrap--hidden-default::-webkit-scrollbar {
  display: none;
}

.cloud-scrollbar__thumb {
  position: relative;
  display: block;
  width: 0;
  height: 0;
  cursor: pointer;
  background-color: var(
    --cloud-scrollbar-bg-color,
    var(--cloud-text-color-secondary)
  );
  border-radius: inherit;
  opacity: var(--cloud-scrollbar-opacity, 0.3);
  transition: var(--cloud-transition-duration) background-color;
}

.cloud-scrollbar__thumb:hover {
  background-color: var(
    --cloud-scrollbar-hover-bg-color,
    var(--cloud-text-color-secondary)
  );
  opacity: var(--cloud-scrollbar-hover-opacity, 0.5);
}

.cloud-scrollbar__bar {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 1;
  border-radius: 4px;
}

.cloud-scrollbar__bar.is-vertical {
  top: 2px;
  width: 6px;
}

.cloud-scrollbar__bar.is-vertical > div {
  width: 100%;
}

.cloud-scrollbar__bar.is-horizontal {
  left: 2px;
  height: 6px;
}

.cloud-scrollbar__bar.is-horizontal > div {
  height: 100%;
}

.cloud-scrollbar-fade-enter-active {
  transition: opacity 0.34s ease-out;
}

.cloud-scrollbar-fade-leave-active {
  transition: opacity 0.12s ease-out;
}

.cloud-scrollbar-fade-enter-from,
.cloud-scrollbar-fade-leave-active {
  opacity: 0;
}
